<?php

namespace Database\Seeders;

use Dcat\Admin\Models;
use Illuminate\Database\Seeder;
use DB;

class AdminTablesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // base tables
        Models\Menu::truncate();
        Models\Menu::insert(
            [
                [
                    "id" => 1,
                    "parent_id" => 0,
                    "order" => 1,
                    "title" => "Index",
                    "icon" => "feather icon-bar-chart-2",
                    "uri" => "/",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => NULL
                ],
                [
                    "id" => 2,
                    "parent_id" => 0,
                    "order" => 13,
                    "title" => "Admin",
                    "icon" => "feather icon-settings",
                    "uri" => "",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 3,
                    "parent_id" => 2,
                    "order" => 14,
                    "title" => "Users",
                    "icon" => "",
                    "uri" => "auth/users",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 4,
                    "parent_id" => 2,
                    "order" => 15,
                    "title" => "Roles",
                    "icon" => "",
                    "uri" => "auth/roles",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 5,
                    "parent_id" => 2,
                    "order" => 16,
                    "title" => "Permission",
                    "icon" => "",
                    "uri" => "auth/permissions",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 6,
                    "parent_id" => 2,
                    "order" => 17,
                    "title" => "Menu",
                    "icon" => "",
                    "uri" => "auth/menu",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 7,
                    "parent_id" => 2,
                    "order" => 18,
                    "title" => "Extensions",
                    "icon" => "",
                    "uri" => "auth/extensions",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 8,
                    "parent_id" => 0,
                    "order" => 8,
                    "title" => "项目 ",
                    "icon" => "fa-th-large",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ],
                [
                    "id" => 9,
                    "parent_id" => 8,
                    "order" => 9,
                    "title" => "项目列表",
                    "icon" => NULL,
                    "uri" => "/project",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2021-07-15 06:47:42",
                    "updated_at" => "2021-07-15 06:47:42"
                ]
            ]
        );
        // finish
    }
}
